<extend name="./Public/main" />
<block name="main">
<style>
.alert_close{
	display:none;
}
</style>
   <div class="row">
       <div class="col-sm-12">
           <div class="ibox float-e-margins">
               <div class="ibox-title">
                   <a href="{:U('Power/addmember')}"><h5><i class="glyphicon glyphicon-plus" aria-hidden="true"></i>添加管理</h5></a>
               </div>
               <div class="ibox-content">
                   <div class="table-responsive">
                       <table class="table table-striped">
                           <thead>
                               <tr>

                                   <th></th>
                                   <th>用户名</th>
                                   <th>电子邮件</th>
                                   <th>电话</th>
                                   <th>所属组名</th>
                                   <th>状态</th>
                                   <th>操作</th>
                               </tr>
                           </thead>
                           <tbody>
                              <volist name="list" id="vo">
                               <tr>
                                   <td>
                                       <div class="icheckbox_square-green checked" style="position: relative;"><input type="checkbox" checked="" class="i-checks" name="input[]" style="position: absolute; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"></ins></div>
                                   </td>
                                   <td>{$vo['username']}</td>
                                   <td>{$vo['email']}</td>
                                   <td>{$vo['phone']}</td>
                                   <td>{$vo['groupname']}</td>
                                   <td>
                                     <if condition="$vo['status'] eq 1">
                                                                                             启用
                                     <elseif condition="$vo['status'] eq -1"/>
                                                                                            停用
                                     <else />
                                                                                     未激活
                                     </if>
                                   </td>
                                   
                                   <td>
                                       <a href="{:U('Power/addmember',array('id'=>$vo['id']))}"  title="修改" style="margin-right:10px"><i class="glyphicon glyphicon-edit"></i></a>
                                       <a href="javascript:;" onclick="delAlert({$vo['id']})"  title="删除"><i class="glyphicon glyphicon-trash"></i></a>
                                   </td>
                               </tr>
                               </volist>
                           </tbody>
                       </table>
                   </div>
               </div>
           </div>
       </div>
   </div>
   <script>
   function delAlert(id){
   	layer.confirm('确认删除', {
   		  btn: ['确定','取消'] //按钮
   		}, function(){
   			var str = "{:U('Power/delmember',array('id'=>seatId))}";
   			var url = str.replace("seatId",id)
   			location.href = url;
   		}, function(){
   			
   		});
   }
   </script>

</block>